import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import store from './store'
import router from "./router"
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
// import 'element-plus/theme-chalk/dark/css-vars.css'//这是黑夜模式切换需要写入一个开关
// createApp(App)
app.use(ElementPlus)
app.use(store)
app.use(router)
app.mount('#app')
